<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<title>layuiAdmin 后台管理员</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" th:href="@{/layuiadmin/layui/css/layui.css}" media="all">
	<link rel="stylesheet" th:href="@{/layuiadmin/style/admin.css}" media="all">
	<style>
		.layui-table-cell {
			height: auto;
			line-height: 30px;
		}
	</style>
</head>

<body>
<div class="layui-fluid">
	<div class="layui-card">
		<table class="layui-hide" lay-filter="sms" id="sms"></table>
	</div>
</div>

<script th:src="@{/layuiadmin/layui/layui.js}"></script>
<!-- 绑定模板 -->
<script type="text/html" id="msgBodyTpl">
	{{ d.msgBody }}
</script>
<script>
	// 用户基础班表[user_base]
	layui.use('table', function () {
		const table = layui.table;
		//借款
		table.render({
			// 表格容器ID
			elem: '#sms'
			// 表格ID，必须设置，重载部分需要用到
			, id: 'sms'
			, title: '用户基础信息'
			, url: "/grape/sms/getSmsInfo"
			// 附加参数，post token
			, contentType: 'application/json'
			, method:'post'
			// 分页 curr起始页，groups连续显示的页码，默认每页显示的条数
			, text: {
				none: '暂无相关数据' //默认：无数据。注：该属性为 layui 2.2.5 开始新增
			}
			, skin: 'line' //行边框风格
			, even: true //开启隔行背景
			, size: 'sm' //小尺寸的表格
			, loading: false
			, cols: [
				[
					,{field: 'id', title: 'id'}
					,{field: 'mobile', title: 'mobile', width: 160}
					,{field: 'sceneType', title: 'sceneType', width: 100}
					,{field: 'msgBody', title: 'msgBody'}
				]
			]
		});
	});

</script>
</body>
</html>

